package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForTaskStagesTasksRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForTaskStagesTasksRequestConvert extends BaseConvert {
    public static ProjectForTaskStagesTasks convert(ProjectForTaskStagesTasksRequest request) throws Exception {
        ProjectForTaskStagesTasks daoRequest = new ProjectForTaskStagesTasks();
        copyProperties(request, daoRequest);

        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setExecuteStatus(daoRequest.getExecuteStatus() == null ? null : daoRequest.getExecuteStatus().trim());
        daoRequest.setCreateBy(daoRequest.getCreateBy() == null ? null : daoRequest.getCreateBy().trim());
        daoRequest.setDoneBy(daoRequest.getDoneBy() == null ? null : daoRequest.getDoneBy().trim());
        daoRequest.setDoneTime(daoRequest.getDoneTime() == null ? null : daoRequest.getDoneTime().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setAssignTo(daoRequest.getAssignTo() == null ? null : daoRequest.getAssignTo().trim());
        daoRequest.setStageCode(daoRequest.getStageCode() == null ? null : daoRequest.getStageCode().trim());
        daoRequest.setTaskTag(daoRequest.getTaskTag() == null ? null : daoRequest.getTaskTag().trim());
        daoRequest.setBeginTime(daoRequest.getBeginTime() == null ? null : daoRequest.getBeginTime().trim());
        daoRequest.setEndTime(daoRequest.getEndTime() == null ? null : daoRequest.getEndTime().trim());
        daoRequest.setRemindTime(daoRequest.getRemindTime() == null ? null : daoRequest.getRemindTime().trim());
        daoRequest.setPcode(daoRequest.getPcode() == null ? null : daoRequest.getPcode().trim());
        daoRequest.setDeletedTime(daoRequest.getDeletedTime() == null ? null : daoRequest.getDeletedTime().trim());
        daoRequest.setVersionCode(daoRequest.getVersionCode() == null ? null : daoRequest.getVersionCode().trim());
        daoRequest.setFeaturesCode(daoRequest.getFeaturesCode() == null ? null : daoRequest.getFeaturesCode().trim());
        daoRequest.setDescription(daoRequest.getDescription() == null ? null : daoRequest.getDescription().trim());
        daoRequest.setPath(daoRequest.getPath() == null ? null : daoRequest.getPath().trim());
        daoRequest.setPriText(daoRequest.getPriText() == null ? null : daoRequest.getPriText().trim());
        daoRequest.setStatusText(daoRequest.getStatusText() == null ? null : daoRequest.getStatusText().trim());
        daoRequest.setTagsCode(daoRequest.getTagsCode() == null ? null : daoRequest.getTagsCode().trim());
        daoRequest.setSubsCodeDone(daoRequest.getSubsCodeDone() == null ? null : daoRequest.getSubsCodeDone().trim());
        daoRequest.setSubsCode(daoRequest.getSubsCode() == null ? null : daoRequest.getSubsCode().trim());
        daoRequest.setExecutorName(daoRequest.getExecutorName() == null ? null : daoRequest.getExecutorName().trim());
        daoRequest.setExecutorAvatar(daoRequest.getExecutorAvatar() == null ? null : daoRequest.getExecutorAvatar().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());

        return daoRequest;
    }
}
